
package com.tmz.cloudmall.cloudmallgateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;


/**
 * 网关服务：不用数据源，过滤掉数据源配置
 * @author tmz
 * @date 2025/09/01
 *
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class},
        scanBasePackages = {
        "com.tmz.cloudmall.cloudmallgateway", "com.tmz.cloudmall.cloudmallgateway.config",
        "com.tmz.cloudmall.cloudmallcommon.config.webflux"  // 只扫描 WebFlux 配置
}
)
@EnableDiscoveryClient
public class CloudmallGatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(CloudmallGatewayApplication.class, args);
    }

}
